<template>
  <div id="lunbo">
    <div
      :style="{
      borderRadius:styles.circle+'px',
      marginTop:styles.marginTop+'px',
       marginBottom:styles.marginBottom+'px',
        marginLeft:styles.marginLR+'px',
         marginRight:styles.marginLR+'px',
    }"
    >
    <el-carousel trigger="click" :height="styles.height+'px'">
      <el-carousel-item v-for="(v,i) in styles.imgUrl" :key="i">
       <el-image :style="{width: '100%', height: styles.height+'px'}" :src="v.img==''?img:v.img" fit="cover"></el-image>
      </el-carousel-item>
    </el-carousel>
      
    </div>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  name: "lunbo",
  data() {
    return {
      img: require("../../../assets/img/blank1.png"),
    };
  },
  created() {
    console.log();
  },
  props: ["styles"],
};
</script>

<style lang="less" scoped>
#lunbo {
  > div {
    overflow: hidden;
  }
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>